<h2>Your tables</h2>
<p>
  
    <% if @sheets.size == 0 %>
      <em>No tables yet!</em>
    <% else %>

    <table class="sheets">
      <tr>
        <td class="sheet_header"> </td>
        <td class="sheet_header">No.</td>
        <td class="sheet_header">Name</td>
        <td class="sheet_header">Created at</td>
        <td class="sheet_header">Last modified</td>
       </tr>
      <%= render :partial => 'sheet', :collection => @sheets %>
    </table>
    <% end %>
</p>
<p>
    <span class="user_button"><%= link_to 'Create new', :controller => 'sheet', :action => 'new' %></span>
    <span class="user_button"><%= link_to_remote 'Delete', 
    :url => { :action => 'delete', :id => '11'}, :confirm => "Are you sure?"%></span>
</p>